#include <iostream>
using namespace std;

int main()
{
    int a = 0;
    while (a <= 5)
    {
        a++ ;
        cout << a << endl;
    }
    //
    int b = 5;
    do
    {
        cout << b << endl;
        --b;
    } while (b >= 0);
}
